package com.ljq.cksp.dao;

import com.ljq.cksp.pojo.Document;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.solr.repository.SolrCrudRepository;

import java.util.List;

/**
 * @Author:ljq
 * @Date:2020/3/3
 */
public interface DocumentDao extends SolrCrudRepository<Document, String> {
    Page<Document> findByFact(String keyword, PageRequest pageRequest);
    Page<Document> findByAccusation(String keyword, PageRequest pageRequest);

}
